const int greenPin = 7;
const int redPin = 8;
const int bluedPin = 9;

void setup() {
    // put your setup code here, to run once:
    pinMode(redPin, OUTPUT);
    pinMode(greenPin, OUTPUT);
    pinMode(bluedPin, OUTPUT);
}

void loop() {
    // put your main code here, to run repeatedly:
    digitalWrite(redPin, HIGH); //点亮
    digitalWrite(greenPin, LOW); //点亮
    digitalWrite(bluedPin, LOW); //点亮
    delay(500); //延时500ms
    digitalWrite(redPin, LOW); //熄灭
    digitalWrite(greenPin, LOW); //熄灭
    digitalWrite(bluedPin, LOW); //熄灭
    delay(500); //延时500ms

    digitalWrite(redPin, LOW); //点亮
    digitalWrite(greenPin, HIGH); //点亮
    digitalWrite(bluedPin, LOW); //点亮
    delay(500); //延时500ms
    digitalWrite(redPin, LOW); //熄灭
    digitalWrite(greenPin, LOW); //熄灭
    digitalWrite(bluedPin, LOW); //熄灭
    delay(500); //延时500ms

    digitalWrite(redPin, LOW); //点亮
    digitalWrite(greenPin, LOW); //点亮
    digitalWrite(bluedPin, HIGH); //点亮
    delay(500); //延时500ms
    digitalWrite(redPin, LOW); //熄灭
    digitalWrite(greenPin, LOW); //熄灭
    digitalWrite(bluedPin, LOW); //熄灭
    delay(500); //延时500ms
}
